import axios from 'helpers/axios'
import { IGetAlbumResponse } from './types/album'
type GetAlbumFn = (id: number) => Promise<IGetAlbumResponse>
const getAlbum: GetAlbumFn = async (id) => {
  const res = await axios({
    url: '/album',
    params: {
      id,
    },
  })
  return res
}
export default getAlbum
